package com.travel.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
//@TableName("travel_carousel")
@ApiModel(value = "TrivelCarousel" , description = "旅游首页轮播图")
public class TravelCarousel {

    @ApiModelProperty(value = "轮播图id" , example = "1" , required = true)
    private Integer id;

    @ApiModelProperty(value = "轮播图标题" , example = "aaa" , required = true)
    private String title;

//    @TableField("image_url")
    @ApiModelProperty(value = "轮播图图片地址" , example = "http://www.baidu.com" , required = true)
    private String imageUrl;

    @ApiModelProperty(value = "排序" , example = "1" , required = true)
    private String sort;

//    @TableField("create_time")
    @ApiModelProperty(value = "创建时间" , example = "2021-01-01 12:00:00" , required = true)
    private String createTime;

//    @TableField("update_time")
    @ApiModelProperty(value = "更新时间" , example = "2021-01-01 12:00:00" , required = true)
    private String updateTime;
}
